package controller.xing;

import com.alibaba.dubbo.config.annotation.Reference;
import service.HelloService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/home")
public class HelloDubboController {

    @Reference
    HelloService helloService;

    @RequestMapping("/hello")
    public String hello(){
        return helloService.sayHello("dubbo_success!");
    }
}
